Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieve detailed information about a specific user. This endpoint enforces ownership validation - users can only view their own profile unless they have admin privileges.Authentication
Requires a valid JWT token. The authenticated user must be either:- An admin (can view any user)
- The owner of the account (can only view their own profile)
Path Parameters
The unique identifier of the user to retrieve
Response
Unique identifier for the user
User’s email address (unique)
User’s full name
User role: either
admin or userWhether the user account is active
Flag indicating if user must change password on next login
Timestamp when the user was created
Timestamp when the user was last updated
Example Request
cURL
Example Response
200 Success
400 Bad Request
403 Forbidden
404 Not Found
Authorization Rules
The endpoint validates permissions as follows:- Admin users: Can view any user profile
- Regular users: Can only view their own profile (user.userId === id)
- Mismatch: If a regular user tries to view another user’s profile, returns 403 Forbidden
/home/daytona/workspace/source/src/users/users.controller.ts:45